

let app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    themeStyle: "",
    showSinglePop: false,//显示选择弹窗
    singlePopType: "",//单项弹窗类型
    singlePopTitle: "选择",//单项弹窗标题
    showDeliveryTimePop: false,//交付时间选择
    minDate: new Date(2000, 12, 31).getTime(),
    maxDate: new Date(2050, 12, 31).getTime(),
    timePopType: "",
    showCityArea: false,//城市区域
    formData: {
      communityName: "",//小区名称
      cityCode: "",
      cityName: "",
      areaName: "",
      areaCode: "",
      provinceCode: "",
      provinceName: "",
      volumeRate: "",//容积率
      greenRate: "",//绿化率
      buildTime: "",//创建年代
      totalDongNumber: "",//楼盘总栋数
      totalHouseholds: "",//楼盘总户数
      belongCommunity: "",//所属社区
      parking: "",//车位数
      parkingCost: "",//停车费
      communityAlis: "",//小区别名

      propertyCost: "",//物业费
      developer: "",//开发商
      propertyCompany: "",//物业公司
      address: "",//楼盘地址
      latitude: "",//纬度
      longitude: "",//经度
      coverPic: "",//封面图
      images: [

      ],
      communityIntroduce: "",//小区介绍

    },
    secondTagArr: [],//房源特色标签
    selectSecondTagArr: [],//已选中的房源特色标签
    houseMainTag: {},//房源主标签
    houseNumber: "",
    communityNumber: "",
    isHaveBasicInfo: false,//是否已有新房基础信息
    btnTitle: "保存",
    mainTagsArr: [

    ],
    currentMainTagsArr: [],//当前选中的主标签
    mainSelectTagIndex: 100,//主标签
    tagsType: 1,//默认请求主标签
    /**
     * type: 0 :普通标签
     *       1 :主标签
     */

    isFoldTag: false,
    communityList: [

    ],
    isStandard: false,

    saleType: 0,// 0: 帮我找二手房，1:帮我卖二手房 2:帮我找铺
    findSecondData: {
      "areaName": "",
      "name": "",
      "needDesc": "",
      "phone": "",
      "preMoney": "",
      "type": "找二手",
    },
    saleSecondData: {
      "address": "",
      "areaCode": "",
      "areaName": "",
      "cityCode": "",
      "cityName": "",
      "communityName": "",
      "expectPrice": "",
      "latitude": 0,
      "longitude": 0,
      "phone": "",
      "provinceCode": "",
      "provinceName": "",
      "submitName": "",

    },
    shopData: {
      "areaName": "",
      "name": "",
      "needDesc": "",
      "phone": "",
      "preMoney": "",
      "type": "找商铺",
    },



    showSuccessPop: false,
    showSuccessText: "您的需求提交成功，稍后会有工作人员和您联系"


  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {


  },


  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    if (app.globalData.themeStyle) {
      this.setData({
        themeStyle: app.globalData.themeStyle
      })
    }
  },




})